<%= content_for :css do %>
<%= stylesheet_link_tag '/assets/presentation' %>
<% end %>

<!-- orientation info -->
<% if @guided_tour %>
	<div id="orinfo">
		<%= link_to 'Home', root_path %> >
		<%= link_to 'Structure Tour', structures_best_path %> >
		<%= @structure.name %>
	</div>
<% else %>
	<div id="orinfo">
		<%= link_to 'Home', root_path %> >
		<%= link_to 'All Structures', structures_all_path %> >
		<%= @structure.name %>
	</div>
<% end %>

<h1> <%= @structure.name %> </h1>

<!--<p> guided tour: <%= @guided_tour %> </p>-->

<button id ="introduction" class="structural" disabled="disabled">
	Presentation
</button>
<button id="booking" class="structural">
	<%= link_to 'Booking Table', structures_booking_table_url(@structure.id, guided_tour: @guided_tour) %>
</button>

<!-- navigation link for the guided tour -->
<div id="Buttons">
	<% if @guided_tour %>
	<button id="prevBut">
		<%= link_to 'prev', structure_path(@previous, guided_tour: true) %>
	</button>
	<button id="nextBut">
		<%= link_to 'next', structure_path(@next, guided_tour: true) %>
	</button>
	<% end %>
</div>

<%= image_tag @structure.img_src, class: "descImg" %>

<div class="capEquip">
	<h4>Equipments </h4> <br>
	<p>
	<%= simple_format @structure.equipments%>
	</p>
	<br>
	<h4>Capacity </h4> <br>
	<%= @structure.capacity %>
</div>

<div class="desc"><p><%= simple_format @structure.description %></p></div>

<% if @structure.events.size() > 0 %>
	<button id="relatedEvents">
		<%= link_to 'Related Events', structures_related_events_url(@structure, guided_tour: @guided_tour) %>
	</button>
<% else %>
	<button id="relatedEvents" disabled="disabled">
	Related Events
	</button>
<% end %>
